//
//  STL_PlayerRecognizer.h
//  PanTest
//
//  Created by dllo on 16/4/8.
//  Copyright © 2016年 LZB. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, STLMoveDirection) {
    STLdirectionNone,
    STLdirectionUp,
    STLdirectionDown,
    STLdirectionTopLeft,
    STLdirectionTopRight,
    STLdirectionBottomLeft,
    STLdirectionBottomRight,
};

@protocol STL_PlayRecognizerDelegate <NSObject>

// 协议方法 返回给被滑动视图滑动的方向和滑动的距离
- (void)recognizWithMoveDirection:(STLMoveDirection)direction withChangeValue:(CGFloat)changeValue;

@end

@interface STL_PlayerRecognizer : NSObject

@property (nonatomic, assign) STLMoveDirection direction;
@property (nonatomic, assign) id <STL_PlayRecognizerDelegate>panDelegate;
@property (nonatomic, assign) CGPoint startPanPoint;


- (void)handleSwipe:(UIPanGestureRecognizer *)recognizer withView:(UIView *)view;


@end
